package cn.doit.config

import java.util.Properties

import com.typesafe.config.ConfigFactory

/**
  * Created by ZHAOXUHUA 
  * .           on 2018/11/29.
  */
object MysqlConfig {
  private lazy val application = ConfigFactory.load()

  /* 解析运行模式 */
  val _power = application.getString("dolphin.common.power")

  /* 解析mysql配置 */
  val _driver = application.getString("dolphin.mysql.driver")
  val _url = application.getString("dolphin.mysql.url")
  val _username = application.getString("dolphin.mysql.username")
  val _password = application.getString("dolphin.mysql.password")

  /* mysql的属性参数封装 */
  val props = new Properties()
  props.setProperty("driver", _driver)
  props.setProperty("user", _username)
  props.setProperty("password", _password)
}

